package com.huaxun.edu.model;

import net.optix.common.app.HLTable;
import net.optix.common.app.HLTableField;
import net.optix.common.db.IDBTable;
import net.sf.json.JSONArray;

@SuppressWarnings("serial")
@HLTable(comment = "考试名称")
public class TBE_Ksmc implements IDBTable {

	public String[] showForeignFields() {
		return new String[] { "bhArray", "xkbmArray", "xqName", "state" };
	}

	public String[] showPrimaryKeys() {
		return new String[] { "ksbm" };
	}

	// 考试状态
	private int state;

	@HLTableField(length = 200, comment = "考试编码")
	private String ksbm;

	@HLTableField(length = 200, comment = "考试类别")
	private String kslb;

	@HLTableField(length = 200, comment = "考试名称")
	private String ksmc;

	@HLTableField(length = 200, comment = "学年")
	private String xn;

	@HLTableField(length = 200, comment = "学期")
	private String xq;

	private String xqName;

	@HLTableField(length = 200, comment = "学校代码")
	private String xxdm;

	@HLTableField(length = 200, comment = "考试班级")
	private String bhs;

	private JSONArray bhArray;

	@HLTableField(length = 200, comment = "考试课程")
	private String xkbms;

	private JSONArray xkbmArray;

	// 年级
	private String nj;

	/***************************************************************************
	 * 学分制
	 **************************************************************************/
	private String xfzs;

	public void setKsbm(String ksbm) {
		this.ksbm = ksbm;
	}

	public String getKsbm() {
		return ksbm;
	}

	public void setKslb(String kslb) {
		this.kslb = kslb;
	}

	public String getKslb() {
		return kslb;
	}

	public void setKsmc(String ksmc) {
		this.ksmc = ksmc;
	}

	public String getKsmc() {
		return ksmc;
	}

	public void setXn(String xn) {
		this.xn = xn;
	}

	public String getXn() {
		return xn;
	}

	public void setXq(String xq) {
		this.xq = xq;
	}

	public String getXq() {
		return xq;
	}

	public void setXxdm(String xxdm) {
		this.xxdm = xxdm;
	}

	public String getXxdm() {
		return xxdm;
	}

	public String getBhs() {
		return bhs;
	}

	public void setBhs(String bhs) {
		this.bhs = bhs;
	}

	public JSONArray getBhArray() {
		if (null == bhArray) {
			if (null != bhs && !"".equals(bhs)) {
				bhArray = JSONArray.fromObject(bhs);
			}
		}
		return bhArray;
	}

	public void setBhArray(JSONArray bhArray) {
		this.bhArray = bhArray;
	}

	public String getXkbms() {
		return xkbms;
	}

	public void setXkbms(String xkbms) {
		this.xkbms = xkbms;
	}

	public JSONArray getXkbmArray() {
		if (null == xkbmArray) {
			if (null != xkbms && !"".equals(xkbms)) {
				xkbmArray = JSONArray.fromObject(xkbms);
			}
		}
		return xkbmArray;
	}

	public void setXkbmArray(JSONArray xkbmArray) {
		this.xkbmArray = xkbmArray;
	}

	public String getXqName() {
		return xqName;
	}

	public void setXqName(String xqName) {
		this.xqName = xqName;
	}

	public String getXfzs() {
		return xfzs;
	}

	public void setXfzs(String xfzs) {
		this.xfzs = xfzs;
	}

	public String getNj() {
		return nj;
	}

	public void setNj(String nj) {
		this.nj = nj;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

}